﻿<%@ Page Language="c#" CodeBehind="ManageStaff.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.StaffPages.ManageStaffPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>ManageStaff</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/staff.gif" Title="人员管理" />
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr>
        <td class="<%= ShowNormalStaffs ? "selectedTab" : "unSelectedTab" %>"><a href="ManageStaff.aspx?DisplayType=0" class="Newbutton">在职员工</a></td>
        <td class="<%= !ShowNormalStaffs ? "selectedTab" : "unSelectedTab" %>"><a href="ManageStaff.aspx?DisplayType=1" class="Newbutton">离职员工</a></td>
        <td align="right">
          <asp:CheckBox ID="cbRemind" runat="server" Text="提醒公司全体员工" />&nbsp;&nbsp;&nbsp;
          <uds:RedirectButton runat="server" Text="新员工" RedirectUrl="../Position/NewStaff.aspx?ReturnPage=1" CssClass="redButtonCss optionButton" />
          <asp:Button ID="cmdDimission" runat="server" Text="离职" CssClass="redButtonCss optionButton" />
          <asp:Button ID="cmdRehab" runat="server" Text="复职" CssClass="redButtonCss optionButton" />
          <asp:Button ID="cmdChangePosition" runat="server" Text="调职" CssClass="redButtonCss optionButton" />
          <uds:RedirectButton runat="server" Text="查询" RedirectUrl="Sch/Search.aspx" CssClass="redButtonCss optionButton" />
        </td>
      </tr>
    </table>
    <uds:UDSDataGrid ID="dbStaffList" runat="server" OnPageIndexChanged="DataGrid_PageChanged" DataKeyField="ID">
      <Columns>
        <asp:TemplateColumn HeaderText="ID">
          <HeaderStyle Width="20px" />
          <ItemTemplate>
            <asp:CheckBox ID="chkStaff_ID" runat="server" />
          </ItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn Text="真实姓名" DataNavigateUrlField="ID" DataNavigateUrlFormatString="../position/NewStaff.aspx?StaffID={0}&amp;ReturnPage=1" DataTextField="RealName" HeaderText="真实姓名">
          <HeaderStyle Width="100px" />
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="Mobile" HeaderText="手机">
          <HeaderStyle Width="60px" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="AgeStr" HeaderText="年龄">
          <HeaderStyle HorizontalAlign="Center" Width="30px" />
          <ItemStyle HorizontalAlign="Center" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="SexStr" HeaderText="性别">
          <HeaderStyle HorizontalAlign="Center" Width="30px" />
          <ItemStyle HorizontalAlign="Center" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Email" HeaderText="EMAIL">
          <HeaderStyle Width="100px" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="PositionName" HeaderText="所在部门">
          <HeaderStyle Width="150px" />
        </asp:BoundColumn>
        <asp:TemplateColumn HeaderText="注册日期">
          <HeaderStyle HorizontalAlign="Right" Width="80px" />
          <ItemStyle HorizontalAlign="Right" />
          <ItemTemplate>
            <%# Utility.FormatDate( ((StaffInfo)Container.DataItem).TimeRegistered ) %>
          </ItemTemplate>
        </asp:TemplateColumn>
      </Columns>
    </uds:UDSDataGrid>
  </form>
</body>
</html>
